using System;
using System.Globalization;
using System.Windows.Data;

namespace EventLogAnalyzer.View.Converter
{
    public class EventLogGroupsCountToWidthConverter : IValueConverter
    {
        public object Convert(object value, Type targetType,
          object parameter, CultureInfo culture)
        {
//            if(value is int)
//            {
//                return 950 / ((int)value);
//            }
            return 20;
        }

        public object ConvertBack(object value, Type targetType,
            object parameter, CultureInfo culture)
        {
            return null;
        }       
    }
}